import 'package:flutter/material.dart';
import 'package:flutterdemo/pages/tab1/widgets/AnimatedCrossFadeDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/BaselineDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/CartDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/CheckboxDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/ChipDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/ConstrainBoxDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/ConstrainBoxexpandDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/CustomScrollViewdemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/DateTimeDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/Dismissible.dart';
import 'package:flutterdemo/pages/tab1/widgets/ExpansionPanelListDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/FlexDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/GradientTextDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/PageViewBuilderDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/PageViewDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/PopupmenuDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/RadioDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/SliderDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/StackDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/StepDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/SwitchDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/Transformdemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/WrapDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/aspectRatio.dart';
import 'package:flutterdemo/pages/tab1/widgets/imagedemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/offstageDemo.dart';
import 'package:flutterdemo/pages/tab1/widgets/richTextDemo.dart';
import 'FractionallySizedBoxdemo.dart';
import 'TimerPage.dart';

class Widgets extends StatelessWidget {
  const Widgets({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Widgets'),
      ),
      body: ListView(
        children: <Widget>[
          ListTile(
            title: Text('AspectRatio'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => AspectRatioDem(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('ConstrainedBox'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => ConstrainBoxDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('ConstrainedBox expand'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => ConstrainBoxexpandDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('Checkbox'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => CheckboxDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('RadioDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => RadioDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('SwitchDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => SwitchDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('WrapDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => WrapDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('StepDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => StepDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('StackDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => StackDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('PopupmenuDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => PopupmenuDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('SliderDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => SliderDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('RichText 多文本'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => RichTextDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('PageViewDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => PageViewDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('PageViewBuilderDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => PageViewBuilderDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('ChipDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => ChipDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('DateTimeDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => DateTimeDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('CartDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => CartDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('FlexDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => FlexDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('ExpansionPanelList'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => ExpansionPanelListDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('Transformdemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => Transformdemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('CustomScrollViewdemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => CustomScrollViewdemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('TimerPage'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => TimerPage('zsk'),
                ),
              );
            },
          ),
          ListTile(
            title: Text('GradientTextDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => GradientTextDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('BaselineDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => BaselineDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('FractionallySizedBoxDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => FractionallySizedBoxDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('Offstage'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => OffstageDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('ImageDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => ImageDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('DismissibleDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => DismissibleDemo(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('AnimatedCrossFadeDemo'),
            onTap: () {
              Navigator.push(
                context,
                new MaterialPageRoute(
                  builder: (BuildContext context) => AnimatedCrossFadeDemo(),
                ),
              );
            },
          ),
        ],
      ),
    );
  }
}
